#include "MenuMain.h"

MenuMain::MenuMain():Menu()
{

}

MenuMain::MenuMain(std::string filename):Menu(filename)
{

}

void MenuMain::EventHandling(SDL_Event e)
{

}

void MenuMain::Update(Uint32 ticks)
{
	Uint8 *keystate = SDL_GetKeyState(NULL);

	if(keystate[SDLK_UP])
		sit--;
	if(keystate[SDLK_DOWN])
		sit++;

	state = *sit;

	if(keystate[SDLK_c])
	{

		if(state == "New Game")
		{
			//change engine state to new game
		}
		else if(state == "Continue")
		{
			//change engine state to continue menu
		}
		else if(state == "Quit")
		{
			//Set global quit variable to true
		}
		//Perform action based on state
	}
	if(keystate[SDLK_v])
	{
		//Go to last state or cancel action
	}

	Menu::Update(ticks);

}
